import request from "@/utils/request";

// 查询医疗机构计分记录列表
export function getOrgScoringListAPI(query) {
  return request({
    url: "/medical/zpMedicalOrgScoring/list",
    method: "get",
    params: query,
  });
}

// 记分记录新增
export function addOrgScoringAPI(query) {
  return request({
    url: "/medical/zpMedicalOrgScoring/add",
    method: "post",
    data: query,
  });
}

// 查询机构计分类型列表
export function getScoringTypeListAPI(query) {
  return request({
    url: "/medical/score/list",
    method: "get",
    params: query,
  });
}
// 记分类型新增
export function addScoringTypeAPI(query) {
  return request({
    url: "/medical/score/add",
    method: "post",
    data: query,
  });
}

// 查询下拉值
export function listTypePullDown(query) {
  return request({
    url: "/medical/score/listTypePullDown?type=" + query,
    method: "get"

  });
}

// 删除记分记录
export function scoreRemoveByIds(param) {
  return request({
    url: "/medical/score/removeByIds",
    method: "post",
    data: param,

  });
}

// 删除记分记录
export function getScoreById(id) {
  return request({
    url: `/medical/score/${id}`,
    method: "get",

  });
}
// 删除记分记录
export function scoreEdit(param) {
  return request({
    url: "/medical/score/edit",
    method: "post",
    data: param,

  });
}
